<script setup>
import store from "../../store";

const {imagePath} = store.common();
</script>

<template>
  <view class="essay-list">
    <!-- / 左图右文 -->
    <view v-if="false" class="menu-scroll-list" hover-class="li-hover">
      <view class="menu-scroll-list-img">
        <image :src="'https://cdn.frbkw.com/wp-center/uploads/2024/08/20240802110323182.jpg'" mode="aspectFill"></image>
      </view>
      <view class="menu-scroll-list-right">
        <view class="menu-scroll-list-h">
          {{ '【终极】Duet Pro 终极Mac拓展Windos跨屏方案，一套键盘鼠标控制多设备' }}
        </view>
        <view class="menu-sld-icon-display">
          <image v-if="true" class="menu-sld-icon" :src="imagePath('protected','svg','data/')"  ></image>
          <image v-if="false" class="menu-sld-icon" :src="imagePath('ad_video','svg','data/')"></image>
          <image v-if="false" class="menu-sld-icon" :src="imagePath('down','svg','data/')"></image>
        </view>
        <view class="menu-scroll-list-describe">
          <view>{{ '2022-01-02' }}</view>
        </view>
      </view>
    </view>

    <!-- / 大图模式 -->
    <view class="list-one-w" hover-class="li-hover" @tap="newPostTap(item)" v-if="false">
      <view class="list-one-img" >
        <image :src="'https://cdn.frbkw.com/wp-center/uploads/2024/08/20240802110323182.jpg'" mode="aspectFill"></image>
      </view>
      <view class="list-one-data-w">
        <view class="menu-sld-icon-display" style="margin-bottom: 6rpx;">
          <image v-if="true" class="menu-sld-icon" :src="imagePath('protected','svg','data/')"  ></image>
          <image v-if="false" class="menu-sld-icon" :src="imagePath('ad_video','svg','data/')"></image>
          <image v-if="false" class="menu-sld-icon" :src="imagePath('down','svg','data/')"></image>
        </view>
        <view class="list-one-title">
          {{ '撒大苏打水水实打实大苏打'}}
        </view>
        <view class="list-ona-abstract">
        </view>
      </view>
    </view>

    <!-- 双排列表 -->
    <view class="lists-flex" >
      <view class="lists-item" v-for="(item,index) of 10" :key="index">
        <view class="lists-img">
          <image :src="'https://cdn.frbkw.com/wp-center/uploads/2024/08/20240802110323182.jpg'" mode="aspectFill"></image>

        </view>
        <view class="lists-title">
          {{ 'hhahhaha'}}
        </view>
        <view class="swiper-tag-view" style="margin: 10rpx;">
          <image v-if="true" class="menu-sld-icon" :src="imagePath('protected','svg','data/')"  ></image>
          <image v-if="false" class="menu-sld-icon" :src="imagePath('ad_video','svg','data/')"></image>
          <image v-if="false" class="menu-sld-icon" :src="imagePath('down','svg','data/')"></image>
        </view>
      </view>
    </view>

  </view>
</template>

<style scoped lang="scss">
.essay-list{
  display: flex;
  flex-direction: column;
  padding: 0 30rpx;
  row-gap: 30rpx;
  .lists-flex {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    padding-bottom: 28rpx;
    gap: 30rpx;
  }

  .lists-item {
    border-radius: 20rpx;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 6px 9px rgba(0, 0, 0, 0.16);
    flex-shrink: 0;
  }
  .lists-hot {
    display: inline;
    font-size: 28rpx;
  }

  .lists-title {
    margin: 20rpx 10rpx;
    font-size: 30rpx;
    height: 80rpx;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .lists-img {
    height: 260rpx;
    width: 100%;
    border-radius: 20rpx;
    margin-bottom: 10rpx;
    overflow: hidden;
    image{
      width: 100%;
      height: 100%;
    }
  }
  .menu_scroll_top_tow,
  .menu-scroll-list,
  .scroll-view-item-list,
  .Vajra-bg,
  .lists-item{
    //background: #202020;
  }

  .list-one-w {
    box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.16);
    border-radius: 20rpx;
    overflow: hidden;
    background-color: #FFFFFF;
    margin-bottom: 10rpx;
    .list-one-data-w {
      margin: 28rpx;
    }

    .list-one-img {
      height: 320rpx;
      border-radius: 20rpx;
      overflow: hidden;
      image{
        width: 100%;
        height: 100%;
      }
    }

    .list-one-title {
      font-size: 28rpx;
      border-radius: 0rpx 0rpx 20rpx 20rpx;
      margin-top: -10rpx;
      padding: 10rpx 0rpx;
    }
    .list-ona-abstract {
      color: #ADADAD;
      font-size: 24rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      margin-top: 2rpx;
    }
    .list-one-title,
    .titel-vi-font {
      color: #989898;
    }
  }
  .menu-sld-icon-display {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .menu-sld-icon {
    height: 40rpx;
    width: 40rpx;
    display: block;
    margin-right: 4rpx;
    flex-shrink: 0;
  }

  .menu-scroll-list-h {
    font-size: 26rpx;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .menu-scroll-list-right {
    margin-left: 32rpx;
    width: 420rpx;
    display: flex;
    justify-content: space-between;
    flex-flow: column;
  }

  .menu-scroll-list-img {
    width: 360rpx;
    height: 180rpx;
    border-radius: 16rpx;
    overflow: hidden;
    image{
      width: 100%;
      height: 100%;
    }
  }
  .menu-scroll-list {
    display: flex;
    padding: 30rpx;
    background-color: #FFFFFF;
    border-radius: 20rpx;
    .menu-scroll-list-describe {
      color: #ADADAD;
      font-size: 20rpx;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
    }

    .list-li-tag {
      color: #0BBDA6;
      font-size: 20rpx;
    }


  }
}
</style>
